<div class="pageBox">
    <div class="pageBoxleft">
        <?php if (isset($this->first) and isset($this->previous)) { ?>
            <a class="firstpage" onclick="nextPageSub('<?=$this->first;?>')" href="javascript:void(0)"><img src="<?=$this->baseURI();?>images/firstButton.gif" alt="" /></a>
        <?php } else { ?>
            <a class="firstpage" href=""><img src="<?=$this->baseURI();?>images/firstButton.gif" alt="" /></a>
        <?php }
        if (isset($this->previous)) { ?>
            <a onclick="nextPageSub('<?=$this->previous;?>')" href="javascript:void(0)"><img src="<?=$this->baseURI();?>images/previousButton.gif" alt="" /></a>
        <?php } else { ?>
            <a href=""><img src="<?=$this->baseURI();?>images/previousButton.gif" alt="" /></a>
        <?php } ?>
    </div>

    <div class="pageNumber">
        (<?php echo $this->firstItemNumber; ?> to <?php echo $this->lastItemNumber; ?> of <?php echo $this->totalItemCount; ?>)
    </div>


    <div class="pageBoxleft">
        <?php if (isset($this->last) and isset($this->next)) { ?>
            <a class="firstpage" onclick="nextPageSub('<?=$this->last;?>')" href="javascript:void(0)"><img src="<?=$this->baseURI();?>images/lastButton.gif" alt="" /></a>
        <?php } else { ?>
            <a class="firstpage" href=""><img src="<?=$this->baseURI();?>images/lastButton.gif" alt="" /></a>
            <?php }
            if (isset($this->next)) { ?>
            <a onclick="nextPageSub('<?=$this->next;?>')" href="javascript:void(0)"><img src="<?=$this->baseURI();?>images/nextButton.gif" alt="" /></a>
        <?php } else { ?>
            <a href=""><img src="<?=$this->baseURI();?>images/nextButton.gif" alt="" /></a>
        <?php } ?>
    </div>
</div>